<!DOCTYPE html>
<html lang="zh-cmn-Hans-CN">
<head>
	<meta charset="utf-8">
	<!-- 优先使用IE最新版本和 Chrome -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<!-- 360 浏览器内核控制 -->
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<!-- 控制手机和平板的显示比例 -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- SEO 三项优化 -->
	<!-- 页面描述 -->
	<meta name="description" content="" />
	<!-- 页面关键词 -->
	<meta name="keywords" content=""/>
	<!-- 页面标题 -->
	<title>传媒网址大全 传媒网站导航——传媒新视野</title>
	<!-- Bootstrap core CSS -->
	<link href="<?php echo base_url();?>application/views/css/bootstrap.css" rel="stylesheet">
	<!-- 自定义样式表 -->
	<link href="<?php echo base_url() ?>application/views/site/index.css" rel="stylesheet">	
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
	<![endif]-->
</head>

<body>
	<div class="container">
		<nav class="navbar navbar-default">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">首页</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="navbar-collapse-1">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="<?php echo site_url('/user/register_form/');?>">注册</a></li>
            <li><a href="<?php echo site_url('/user/login/');?>">登录</a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </nav>
  </div>
	<div class="container">
		<?php $newtype = '';?>			
		<?php foreach ($site as $item) :?>
		 	<?php if($newtype == '') :?>											
				<div class="row">
					<div class="col-xs-12">
						<h2><?php echo $item['sitetype']?></h2>
						<ul class="list-inline">
			<?php elseif($newtype != $item['sitetype']) :?>
						</ul>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
					<h2><?php echo $item['sitetype']?></h2>
						<ul class="list-inline">
			<?php endif; ?>
							<li class="col-xs-6 col-sm-2"><a href="http://<?php echo $item['siteurl']?>" target="_black"><?php echo $item['siteinfo']?></a></li>			
						<?php $newtype = $item['sitetype'];?>
		<?php endforeach; ?>
						</ul>
					</div>
				</div><!--/.row-->

		</div><!--/.container-->

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<?php echo base_url() ?>application/views/js/jquery.min.js"></script>
	<script src="<?php echo base_url() ?>application/views/js/bootstrap.js"></script>
</body>
</html>